import Layout from '@/layout'
import parentView from '@/layout/components/AppMain'
export default [
  {
    path: '/operationsCenter',
    name: 'operationsCenter',
    meta: {
      icon: 'md-cloud-upload',
      title: '运营中心'
    },
    component: Layout,
    children: [
      {
        path: 'coupon',
        name: 'coupon',
        meta: {
          icon: 'ios-document',
          title: '优惠券管理'
        },
        component: parentView,
        children: [
          {
            path: 'list',
            name: 'list',
            meta: {
              icon: 'ios-document',
              title: '优惠券管理'
            },
            component: () => import('@/views/operationCenter/coupon')
          }
        ]
      },
      {
        path: 'channel',
        name: 'channel',
        meta: {
          icon: 'ios-document',
          title: '渠道管理'
        },
        component: parentView,
        children: [
          {
            path: 'channelList',
            name: 'channelList',
            meta: {
              icon: 'ios-document',
              title: '渠道管理-邀请码'
            },
            component: () => import('@/views/operationCenter/channel/channelList')
          },
          {
            path: 'h5',
            name: 'h5',
            meta: {
              icon: 'ios-document',
              title: '渠道管理-H5'
            },
            component: () => import('@/views/operationCenter/channel/H5')
          },
          {
            path: 'channelBranch',
            name: 'channelBranch',
            meta: {
              icon: 'ios-document',
              title: '渠道分支'
            },
            component: () => import('@/views/operationCenter/channel/channelBranch')
          },
          {
            path: 'GA',
            name: 'GA',
            meta: {
              icon: 'ios-document',
              title: '渠道管理-GA'
            },
            component: () => import('@/views/operationCenter/channel/GA')
          },
          {
            path: 'channelData',
            name: 'channelData',
            meta: {
              icon: 'ios-document',
              title: '渠道数据报表'
            },
            component: parentView,
            children: [
              {
                path: 'channelList',
                name: 'channelListData',
                meta: {
                  icon: 'ios-document',
                  title: '渠道数据-邀请码'
                },
                component: () => import('@/views/operationCenter/channel/channelData/channelListData')
              },
              {
                path: 'h5',
                name: 'h5Data',
                meta: {
                  icon: 'ios-document',
                  title: '渠道数据-H5'
                },
                component: () => import('@/views/operationCenter/channel/channelData/h5Data')
              },
              {
                path: 'channelAf',
                name: 'channelAfData',
                meta: {
                  icon: 'ios-document',
                  title: '渠道数据-AF'
                },
                component: () => import('@/views/operationCenter/channel/channelData/channelAfData')
              },
              {
                path: 'channelAfDailyData',
                name: 'channelAfDailyData',
                meta: {
                  icon: 'ios-document',
                  title: '渠道数据-AF每日明细'
                },
                component: () => import('@/views/operationCenter/channel/channelData/channelAfDailyData')
              },
              {
                path: 'channelGa',
                name: 'channelGaData',
                meta: {
                  icon: 'ios-document',
                  title: '渠道数据-GA'
                },
                component: () => import('@/views/operationCenter/channel/channelData/channelGaData')
              },
              {
                path: 'channelGaDailyData',
                name: 'channelGaDailyData',
                meta: {
                  icon: 'ios-document',
                  title: '渠道数据-GA每日明细'
                },
                component: () => import('@/views/operationCenter/channel/channelData/channelGaDailyData')
              }
            ]
          }
        ]
      },
      {
        path: 'appMarketing',
        name: 'appMarketing',
        meta: {
          icon: 'ios-document',
          title: 'app营销设置'
        },
        component: parentView,
        children: [
          {
            path: 'recommend',
            name: 'recommend',
            meta: {
              icon: 'ios-document',
              title: '推荐列表'
            },
            component: () => import('@/views/operationCenter/appMarketing/recommend')
          },
          {
            path: 'adPush',
            name: 'adPush',
            meta: {
              icon: 'ios-document',
              title: '广告推送'
            },
            component: parentView,
            children: [
              {
                path: 'PopUps',
                name: 'PopUps',
                meta: {
                  icon: 'ios-document',
                  title: '弹窗广告'
                },
                component: () => import('@/views/operationCenter/appMarketing/adPush/PopUps')
              },
              {
                path: 'splashScreen',
                name: 'splashScreen',
                meta: {
                  icon: 'ios-document',
                  title: '闪屏广告'
                },
                component: () => import('@/views/operationCenter/appMarketing/adPush/splashScreen')
              }
            ]
          }
        ]
      },
      {
        path: 'messageManagement',
        name: 'messageManagement',
        meta: {
          icon: 'ios-document',
          title: '消息管理'
        },
        component: parentView,
        children: [
          {
            path: 'msgPush',
            name: 'msgPush',
            meta: {
              icon: 'ios-document',
              title: '消息推送'
            },
            component: parentView,
            children: [
              {
                path: 'push',
                name: 'push',
                meta: {
                  icon: 'ios-document',
                  title: 'PUSH推送'
                },
                component: () => import('@/views/operationCenter/messageManagement/msgPush/push')
              },
              {
                path: 'bulletin',
                name: 'bulletin',
                meta: {
                  icon: 'ios-document',
                  title: '公告'
                },
                component: () => import('@/views/operationCenter/messageManagement/msgPush/bulletin')
              }
            ]
          },
          {
            path: 'feedBack',
            name: 'feedBack',
            meta: {
              icon: 'ios-document',
              title: '用户意见反馈'
            },
            component: () => import('@/views/operationCenter/messageManagement/feedBack')
          }
        ]
      }
    ]
  }
]
